/****************************************************************************
**
** Copyright (C) 2009-2010 Mist Poryvaev.
** All rights reserved.
** Contact: Mist Poryvaev (mist.poryvaev@gmail.com)
**
** This file is part of the RailWorm project.
**
****************************************************************************/

#ifndef RAILWORMSPLASH_H
#define RAILWORMSPLASH_H

#include <QtGui>

class SplashEventHandler: public QObject {
protected:
	bool eventFilter(QObject * _obj, QEvent * _ev);
};

class RailWormSplash : public QSplashScreen {
	Q_OBJECT
public:
	static RailWormSplash * i();
	void SetMainWindow(QWidget * _w);

private:
	RailWormSplash();
	static RailWormSplash * g_Instance;
	QWidget * m_MainWindow;
};

#endif // RAILWORMSPLASH_H
